import {
    HTTP,
} from "@/plugins/axios";
// 上传的链接
export const uploadFileUrl = 'https://api.saike.qqwj.live/public/upload/file';
// 修改我的比赛信息
export const PutMyrace = data => HTTP(`/front/update/my_contest`, data, "PUT")
// 修改我的密码
export const PutMyPassword = data => HTTP(`/front/update_password`, data, "PUT")
// 取消我的比赛
export const CancelRace = data => HTTP(`/front/delete/my_contest/${data.id}`, data, "DELETE");
// 获取作品详情
export const GetWorkDetail = data => HTTP(`/front/work_and_user/${data.workId}`, data, "GET");
// 获取用户信息
export const GetUserInfo = data => HTTP(`/front/user/${data.id}`, data, "GET");
export const PutUserInfo = data => HTTP(`/front/update/user`, data, "PUT");
// 获取老师获奖信息
export const GetRecords = data => HTTP(`/front/my_contest/awards_records`, data, "GET");
// 获取比赛信息
export const GetContestInfo = data => HTTP(`/front/search/contest/${data.id}`, data, "GET");
// 获取我的比赛信息
export const GetMyRace = data => HTTP(`/front/my_contest/search`, data, "GET")
// 获取比赛列表
export const GetContest = data => HTTP(`/front/contest/list_of_contest`, data, "GET")
// 获取比赛列表热门
export const GetHot = data => HTTP(`/front/contest/hot_contest`, data, "GET")
// 获取比赛新闻
export const GetDynamics = data => HTTP(`/front/contest_news/hot_condition`, data, "Get")
// 获取作品s的信息
export const GetWorksName = data => HTTP(`/front/work_and_contest_name/${data.id}`,data,"GET");
// 获取作品的信息
export const GetWorks = data => HTTP(`/front/work/works_square`, data, "GET")
// 获取评论
export const GetComment = data => HTTP(`/front/comment`, data, "GET")
// 获取消息
export const GetMessage = data => HTTP(`/front/comment/message/${data.id}`, data, "GET")
// 获取通知
export const GetMyNotice = data => HTTP(`/front/notice/my_notice/${data.id}`, data, "GET")
// 获取二级评论
export const GetNextComment = data => HTTP(`/front/comment/level_two`, data, "GET")
// 获取我的评审
export const GetMyAssess = data => HTTP(`/front/work_score/my_review`, data, "GET")
// 获取作品成绩
export const GetWorkScore = data => HTTP(`/front/work_score/criticize/${data.id}`, data, "GET")
// 获取赛事作品（存疑）
export const GetRaceWorks = data => HTTP(`/front/search_by_contest/${data.id}`, data, "GET")
// 添加作品
export const PostWork = data => HTTP(`/front/publish/work`, data, "POST");
// 作品成绩
export const PostView = data => HTTP(`/front/update/work_score`,data,"PUT");
// 添加评论
export const PostComment = data => HTTP(`/front/publish/comment`, data, "POST")
// ？
export const PostAddtest = data => HTTP(`/front/publish/my_contest`, data, "POST")
export const GetAssecc = data => HTTP(`/front/work_score/my_review`, data, "POST")
// 报名比赛
export const PostMyContest = data => HTTP(`/front/publish/my_contest`, data, "POST")
// 获取作品的评审
export const GetView = data => HTTP(`/front/work/${data.workId}`, data, "GET")
